import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './App.vue';
import { router } from './route';
import { Biology, People, Jack } from './tool/prototype.js';
import { message, notification } from 'ant-design-vue';
let JackOne = new Jack('南阳');
// console.log(Jack.prototype.__proto__,JackOne);
Vue.prototype.$message = message;
Vue.prototype.$notification = notification;
Vue.prototype.$Symbol = Symbol.for('wyq');
Vue.mixin({
	methods: {
		backHistroy() {
			let _const = this;
			_const.$router.push({
				path: '/'
			});
		}
	}
});
// 告诉vue使用vue-router
Vue.use(VueRouter);
Vue.config.productionTip = false;
// window.addEventListener('error', (event) => {
// 	console.log(event, 'cuowu');
// });

document.onmousedown = (e) => {
	if (e.button == 2) {
		return false;
	}
};
new Vue({
	router,
	render: (h) => h(App)
}).$mount('#app');
